home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / faq / fds-310.lha / FDS-310.examples next >
Text File  |  1995-10-25  |  15KB  |  378 lines

  1. @Start_of_text
  2.  
  3.     ========================================================================
  4.      EXAMPLES                                                      EXAMPLES
  5.     ========================================================================
  6.  
  7.  
  8.     1.0  DEFAULT DESCRIPTIONS
  9.     =========================
  10.  
  11.     · Example 1.1
  12.  
  13.             --- 8< -------------------------
  14.             %DES: Default
  15.             <Short description>
  16.             --- 8< -------------------------
  17.  
  18.      This is *THE* simplest form of FDS description, which only contains one
  19.     single  description  line.   The description in this case is the DEFAULT
  20.     description (the english description).
  21.  
  22.  
  23.     · Example 1.2
  24.  
  25.             --- 8< -------------------------
  26.             %DES: Default
  27.             <Short description>
  28.             <Extended description, line 1>
  29.             <Extended description, line 2>
  30.             --- 8< -------------------------
  31.  
  32.      This is the same as example 1.1, but with the addition of two lines for
  33.     the extended description.  Please note again that you MUST ALWAYS have a
  34.     SHORT description.  See also next example.
  35.  
  36.  
  37.     · Example 1.3
  38.  
  39.             --- 8< -------------------------
  40.             %DES: Default
  41.             <Extended description, line 1>
  42.             <Extended description, line 2>
  43.             --- 8< -------------------------
  44.  
  45.      This  example  description  is  a bit wrong.  The first "extended" line
  46.     will be the SHORT description in this example.  ALWAYS remember that the
  47.     very  first  line  of  the  description  text  is  used  as  a  one-line
  48.     description.
  49.  
  50.  
  51.     · Example 1.4
  52.  
  53.             --- 8< -------------------------
  54.             %DES: Default
  55.             <Short description>
  56.             <Extended description, line 1>
  57.             <Extended description, line 2>
  58.             $DES: Svenska
  59.             <Short SWEDISH description>
  60.             <Extended SWEDISH description, line 1>
  61.             <Extended SWEDISH description, line 2>
  62.             $AUT: John Doe
  63.             --- 8< -------------------------
  64.  
  65.      This  is  a  multi-language  description, where the DEFAULT description
  66.     comes  first.   It  also  contains  a  Swedish description as well as an
  67.     author keyword informing you who the author is.  See also example 1.5.
  68.  
  69.  
  70.     · Example 1.5
  71.  
  72.             --- 8< -------------------------
  73.             %DES: Svenska
  74.             <Short SWEDISH description>
  75.             <Extended SWEDISH description, line 1>
  76.             <Extended SWEDISH description, line 2>
  77.             %AUT: John Doe
  78.             %DES: Default
  79.             <Short description>
  80.             <Extended description, line 1>
  81.             <Extended description, line 2>
  82.             --- 8< -------------------------
  83.  
  84.      Here  the  default  description have been moved to the end of the file,
  85.     but  this  is  essentially  exactly  the same as example 1.4.
  86.  
  87.  
  88.     · Example 1.6
  89.  
  90.             --- 8< -------------------------
  91.             %DES: Svenska
  92.             <Short SWEDISH description>
  93.             <Extended SWEDISH description, line 1>
  94.             <Extended SWEDISH description, line 2>
  95.             %AUT: John Doe
  96.             --- 8< -------------------------
  97.  
  98.      Well,  this  description  doesn't even have a default description.  How
  99.     does  that  work  then?  Well, it is up to the parsing software to allow
  100.     the  end-user to select if it should use some other description (in this
  101.     example,  a  swedish sysop will probably use the swedish description) or
  102.     if no description should be used at all (an Italian sysop would probably
  103.     NOT  want  to  use  the  swedish  description).   I  don't see this as a
  104.     limitation,   but   rather   the  opposite,  and  I  believe  that  most
  105.     descriptions will use a default(english) description anyway, so...
  106.  
  107.  
  108.  
  109.  
  110.     2.0  SECTIONS IN EXTENDED DESCRIPTIONS
  111.     ======================================
  112.  
  113.     NOTE: The examples in this chapter will only show the extended
  114.           description, NOT the entire description file
  115.  
  116.     This is the "template" used in this chapter;
  117.  
  118.             --- 8< -------------------------
  119.             This is a test of how the use of sections in
  120.             the extended descriptions should be used.
  121.              This is the second section.
  122.  
  123.              This is actually the fourth section, as the empty line
  124.             might be considered to be the third.  This is not that
  125.             interesting for the end-user, but might be of help to
  126.             developers.
  127.  
  128.                 - This is a list
  129.                 - of features, or
  130.                 - a list of known
  131.                 - bugs...
  132.                 - Anyhow, this "list" is treated the same way as
  133.                 - the above sections, and each of these lines
  134.                 - is actually a section.  This means that these
  135.                 - lines are allowed to be wrapped to a defined
  136.                 - linelength.
  137.  
  138.              This is the last section to be used, but after this
  139.             section follows two empty lines, which would've been
  140.             considered to be valid sections if they hadn't been
  141.             AFTER the last "real" section (i.e. this section)
  142.  
  143.  
  144.             --- 8< -------------------------
  145.  
  146.      Ok,  I  will  try  to explain what is supposed to happen with sections.
  147.     Each section is used in a way similar to chapters in a book.  This means
  148.     that each section should not interfere with another, which also prevents
  149.     the wordwrap routine to "mix" sections.
  150.  
  151.  
  152.     · Example 2.1
  153.  
  154.      First, let's take a look at the first two sections;
  155.  
  156.             --- 8< -------------------------
  157.             This is a test of how the use of sections in
  158.             the extended descriptions should be used.
  159.              This is the second section.
  160.             --- 8< -------------------------
  161.  
  162.      There is a difference between these two sections that might not be that
  163.     obvious.   As  you  can see, the second section BEGINS with the space in
  164.     the  first  position on the row.  The space in the first position always
  165.     mean  that  a  new section begins there.  Now, the first section doesn't
  166.     have  this  space  on the first row, why is that?  Well, being the first
  167.     section  it  does not NEED a space, because of it BEING the first row in
  168.     the  extended description.  Of course, it could have been a space there,
  169.     it  would've  meant  the same thing.  Note though that the OUTPUT of the
  170.     parser  should  put  a  space  there, if there was no space there in the
  171.     first place.
  172.  
  173.  
  174.     · Example 2.2
  175.  
  176.      Let's take a look at the "list" from the template.
  177.  
  178.             --- 8< -------------------------
  179.                 - This is a list
  180.                 - of features, or
  181.                 - a list of known
  182.                 - bugs...
  183.                 - Anyhow, this "list" is treated the same way as
  184.                 - the above sections, and each of these lines
  185.                 - is actually a section.  This means that these
  186.                 - lines are allowed to be wrapped to a defined
  187.                 - linelength.
  188.             --- 8< -------------------------
  189.  
  190.      As  these  lines begin with a space, they are all divided into separate
  191.     sections,  which  prevents  them  from  being  wrapped  together into an
  192.     unreadable  mess.   BUT, each of these lines might be wrapped by itself,
  193.     IF  the  end-user  specifys  a linelength of LESS characters than one of
  194.     these  lines are long.  This will probably not be a big problem, but the
  195.     leading  spaces  (4  in this case) should remain as they are, i.e.  they
  196.     should not be converted into ONE single space.  For example; Wrapped for
  197.     35 chars width, the output should look like this:
  198.  
  199.             |-------------- 35 ---------------|
  200.                 - This is a list
  201.                 - of features, or
  202.                 - a list of known
  203.                 - bugs...
  204.                 - Anyhow, this "list" is
  205.             treated the same way as
  206.                 - the above sections, and each
  207.             of these lines
  208.                 - is actually a section.  This
  209.             means that these
  210.                 - lines are allowed to be
  211.             wrapped to a defined
  212.                 - linelength.
  213.             |---------------------------------|
  214.  
  215.      ...which I admit, doesn't look very nice, but is the SIMPLE way to wrap
  216.     text.   Developers  might  choose  to do some really fancy stuff when it
  217.     comes  to wordwrapping, but this is the way it should work as a minimum.
  218.     I  mean,  intelligent  coding could produce the following instead of the
  219.     above;
  220.  
  221.             |-------------- 35 ---------------|
  222.                 - This is a list
  223.                 - of features, or
  224.                 - a list of known
  225.                 - bugs...
  226.                 - Anyhow, this "list" is
  227.                   treated the same way as
  228.                 - the above sections, and each
  229.                   of these lines
  230.                 - is actually a section.  This
  231.                   means that these
  232.                 - lines are allowed to be
  233.                   wrapped to a defined
  234.                 - linelength.
  235.             |---------------------------------|
  236.  
  237.      Well,  the  above  examples  might  be a "worst-case-scenario", as most
  238.     boards  allow  descriptions  44  chars  or MORE for descriptions.  A tip
  239.     would be to keep any "lists" like the above one UNDER 45 chars in width.
  240.  
  241.  
  242.     · Example 2.3
  243.  
  244.      Trailing "empty" sections.
  245.  
  246.      In the very end of the template, the following sections can be found;
  247.  
  248.             --- 8< -------------------------
  249.              This is the last section to be used, but after this
  250.             section follows two empty lines, which would've been
  251.             considered to be valid sections if they hadn't been
  252.             AFTER the last "real" section (i.e. this section)
  253.  
  254.  
  255.             --- 8< -------------------------
  256.  
  257.      Actually,  as  I've mentioned before, the empty lines are sections too,
  258.     but  as  the  two  lines  in the above example really are unnecessary, I
  259.     recommend  that  parsing  software  strips  them from the output.  Thus,
  260.     trailing  "empty"  sections  should  be  removed  from the OUTPUT of any
  261.     parsing software.
  262.  
  263.  
  264.  
  265.  
  266.     3.0  EXAMPLE DESCRIPTIONS
  267.     =========================
  268.  
  269.     · Example 3.1
  270.  
  271.             --- 8< -------------------------
  272.             %DES: Default
  273.             MouseTool 3.2, mouse utility.
  274.             Mouse accelerator, blanker, sound daemon
  275.             and more useful stuff.
  276.             %AUT: Steven Parkinson
  277.             %VER: MouseTool 3.2 (7.6.93)
  278.             %REV: 37.84
  279.             %DAT: 13.6.93
  280.             %REQ: Amiga, OS 2.04+
  281.             %OBJ: Mouse Utility Commodity
  282.             %LAN: Locale/English/Deutsch
  283.             %REP: MTOOL30.LHA MTOOL31.LHA
  284.             %END:
  285.             --- 8< -------------------------
  286.  
  287.      Description  with  only  DEFAULT  (english) description consisting of a
  288.     SHORT  description  (first line) and two EXTENDED description (next two)
  289.     lines,  author  info,  version,  revision  and  release  date.   Program
  290.     requires  an  Amiga  with  at  least  OS 2.04, and supports any language
  291.     provided a translation is created.  It's supplied with English built-in,
  292.     and  German  as  an  option.  It has some search keyword attached, which
  293.     means  that  a  BBS  could  easily  categorize  it  to  a  proper  area.
  294.     Furthermore,  it  supplies  information on previous, obsolete, versions,
  295.     which could now be deleted.
  296.  
  297.  
  298.     · Example 3.2
  299.  
  300.             --- 8< -------------------------
  301.             %DES: Default
  302.             GIF 800x600: Albert Einstein
  303.             %OBJ: Picture Graphics Painting
  304.             %FIL: Einstein.gif
  305.             --- 8< -------------------------
  306.  
  307.      Another very simple description, containing only a SHORT description.
  308.  
  309.  
  310.     · Example 3.3
  311.  
  312.             --- 8< -------------------------
  313.             %DES: Elite
  314.             .------------------------------------------.
  315.             |     UFO Enemy unknown, Vitality fix!     |
  316.             |------------------------------------------|
  317.             |         How to get loads of cash         |
  318.             |           and awesome soldiers           |
  319.             |             UFO Enemy Unknown            |
  320.             |------------------------------------------|
  321.             |Start the Game with 2.147.483.647 Credits.|
  322.             `------------------------------------------'
  323.             %DES: Default
  324.             UFO Enemy Unknown, vitality fix.
  325.             Get LOADS of money and supersoldiers
  326.             in this great game from MicroProse
  327.             %REQ: AGA Amiga, UFO Enemy Unknown
  328.             %OBJ: Game Cheat
  329.             %END:
  330.             --- 8< -------------------------
  331.  
  332.      This  description  contains an "elite"-description, which could contain
  333.     some ASCII-art by any of the good ASCII-artists out there.  This example
  334.     isn't very extreme but wouldn't have made a good description had it been
  335.     used  as  an ordinary description.  This is where the %DES:  Elite comes
  336.     into  the  picture, because it MUST NOT be wrapped, which in turn allows
  337.     these kinds of descriptions.  There is also a DEFAULT description, which
  338.     follows the usual rules for the descriptions.
  339.  
  340.  
  341.     · Example 3.4
  342.  
  343.             --- 8< -------------------------
  344.             %DES: Default
  345.             Spot 1.3, offline reader supreme
  346.             The best point-program available for the
  347.             Amiga.  VERY user-friendly!
  348.             %AUT: Nico François
  349.             %VER: Spot 1.3 (16.8.94)
  350.             %REV: 37.4515
  351.             %REQ: Amiga 2.04+
  352.             %LAN: Locale/English/Dansk/Deutsch/Espanol/Francais/Italiano...
  353.             %TYP: Shareware, features disabled.
  354.             %REG: US$30, UK£20, 1000 BEF, 50 DM
  355.             --- 8< -------------------------
  356.  
  357.      Well,  this  example  is mainly to show the use of the %TYP:  and %REG:
  358.     keywords,  which  can be used to describe if the software is crippled in
  359.     any  way,  and  how  much  it costs to register.  Spot, in this case, is
  360.     Shareware,  and  some features are disabled in the unregistered version.
  361.     Other softwares/authors might be Freeware, Cardware, Giftware, Mailware,
  362.     Callware or whatever...  Use it if you want to...:)
  363.  
  364.  
  365.  
  366.  
  367.     4.0  NOTES ON EXAMPLES
  368.     ======================
  369.  
  370.      Well,  it's  not  that  easy  for  me, knowing the standard inside out,
  371.     writing  things  I  THINK  you  might  be  uncertain  of, so if there is
  372.     something  that  needs  more  explaining, please tell me, and I will add
  373.     more examples.  OR, if you want to, send me more examples yourself!
  374.  
  375.      - Peter
  376.  
  377. @End_of_text
  378.